#include <iostream>
#include <vector>
#include <algorithm>
#include <cmath>
using namespace std;

//和为S的两个数字，双指针
vector<int> FindNumbersWithSum(vector<int> array, int sum)
{
    int len = array.size();
    int i = 0, j = len - 1;
    vector<int> res;
    while (i <= j)
    {
        if (array[i] + array[j] > sum)
        {
            j--;
        }
        else if (array[i] + array[j] < sum)
        {
            i++;
        }
        else
        {
            res.push_back(array[i]);
            res.push_back(array[j]);
            break;
        }
    }
    return res;
}

void test()
{
}

int main()
{
    test();
    return 0;
}